﻿using System;

namespace Program10
{
    class Program
    {
        static void Main(string[] args)
        {
            string pwd1 = "1234567890asddfgjkljqwerqwieuiozklxcjkkolasdiuqoiwe<>?<>,./,./,./,";
            Console.WriteLine("密码明文:{0}", pwd1);
            var md5Pwd1 = Encryption.GetMd5(pwd1);
            Console.WriteLine("密码MD5密文:{0}", md5Pwd1);
            var shaPwd1 = Encryption.GetSHA(pwd1);
            Console.WriteLine("密码sha512密文：{0}", shaPwd1);

            //加盐
            string pwd2 = "123456"+"#j56Yk.@0Dfg";
            Console.WriteLine("密码明文:{0}", pwd2);
            var md5Pwd2 = Encryption.GetMd5(pwd2);
            Console.WriteLine("密码MD5密文:{0}", md5Pwd2);
            var shaPwd2 = Encryption.GetSHA(pwd2);
            Console.WriteLine("密码sha512密文：{0}", shaPwd2);

            //再次加密
            var finalmd5 = Encryption.GetMd5(md5Pwd2);
            Console.WriteLine("二次MD5加密:{0}", finalmd5);
            var final512 = Encryption.GetSHA(md5Pwd2);
            Console.WriteLine("二次SHA密文:{0}", final512);
        }
    }
}
